package com.comverse.timesheet.web.business;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import com.comverse.timesheet.web.bean.TestTable;
import com.comverse.timesheet.web.dao.ITestTableDAO;

public class TestBusiness {
	
	private ITestTableDAO testDAO=null;
	public ITestTableDAO getTestDAO() {
		return testDAO;
	}
	public void setTestDAO(ITestTableDAO testDAO) {
		this.testDAO = testDAO;
	}
	

	public void add() throws Exception{
		TestTable test=new TestTable();
		test.setName("yuanmomo20");
		test.setBirthday(new Date());
		try {
			testDAO.add(test);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			throw e;
		}
	}
}
